requirejs(['./config'], () => {
    requirejs(['template','swiper', 'header', 'footer'], (template, Swiper) => {
        class Index {
            constructor() {
                // console.log(Swiper)
                this.banner()
                // getPhoneData里得到了从后端返回的resp，然后传给了resolve,在这里的then接收，再继续传递给showPhoneData
               
            }
          
            banner () {
                var mySwiper = new Swiper('.swiper-container', {
                  autoplay: 2000,//可选选项，自动滑动
                  // direction : 'vertical', // 垂直切换
                  speed:1000,
                  pagination :'.swiper-pagination',
                  prevButton:'.swiper-button-prev',
                  nextButton:'.swiper-button-next',
                  loop: true,
                  effect :'cube'
                 
                })
              }
            
           
        }
        new Index()
    })
})
